﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LoginPanel : BasePanel
{
    InputField idInput;
    InputField pwdInput;
    Button loginBtn;
    Button regBtn;

	public override void OnInit()
	{
		//base.OnInit();
		skinPath = "LoginPanel";
		type = PanelManager.PanelType.Panel;
	}

	public override void OnShow(params object[] para)
	{
		//UI
		idInput = skin.transform.Find("IdInput").GetComponent<InputField>();
		pwdInput = skin.transform.Find("PwInput").GetComponent<InputField>();
		loginBtn = skin.transform.Find("LoginBtn").GetComponent<Button>();
		regBtn = skin.transform.Find("RegisterBtn").GetComponent<Button>();

		loginBtn.onClick.AddListener(() =>
		{
			Debug.Log("登录");
		});
		regBtn.onClick.AddListener(() =>
		{
			Debug.Log("注册");
		});
	}

	public override void OnClose()
	{
	}

}
